import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home'),
  },
  {
    path: '/main',
    component: () => import('@/views/main'),
    children: [
      {
        path: 'localSession',
        component: () => import('@/views/modules/project2/localStorage')
      },
      {
        path: 'PubTable',
        component: () => import('@/components/PubTable/PubTable')
      },
      {
        path: 'Pagination',
        component: () => import('@/components/PubTable/PagiNation')
      },
      {
        path: 'table',
        component: () => import('@/views/modules/project1/table')
      },
    ]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
